package com.adarsh.f1.biz.impl;

import java.util.List;

import com.adarsh.f1.base.BaseModel;
import com.adarsh.f1.biz.inf.TeamService;
import com.adarsh.f1.dao.inf.TeamDao;
import com.adarsh.f1.entity.Team;

public class TeamServiceImpl implements TeamService {
	TeamDao teamDao;
	
	public TeamDao getTeamDao() {
		return teamDao;
	}

	public void setTeamDao(TeamDao teamDao) {
		this.teamDao = teamDao;
	}
	
	
	@Override
	public boolean insert(BaseModel baseModel){
		teamDao.insert(baseModel);
		return true;
	}

	@Override
	public List<BaseModel> getAllTeam() {
		return teamDao.getAllTeam();
	}



	@Override
	public BaseModel find(Class< ? extends BaseModel> baseClass, long teamId) {
		return teamDao.find(baseClass, teamId);
	}
}
